<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="row">
    <div class="col-lg-4">
        <form method="post" id="registForm"  action="/updataB">

            <div class="form-group">
                <label class="col-sm-3 control-label">科目：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control"  name="id" hidden  value="${up.id}">
                    <input type="text" class="form-control"  name="course" value="${up.course}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">授课老师：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="tname" value="${up.tname}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">上课地点：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="site" value="${up.site}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开课日期：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control"   name="time" value="${up.time?date}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-9">

          <label class="control-label"><input type="radio" name="state"
                      <#if ('${(up.state)}'=='1')>
                  checked</#if> value="1">开课</label>

                        <label class="control-label">

                            <input type="radio" name="state" <#if ('${(up.state)}'=='2')>
                                checked</#if> value="2">结课</label>\


                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" id="btn" class="btn btn-success" value="1">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>